package com.aostarit.ei.aocrm.controllers;

import com.aostarit.ei.aocrm.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


/**
 * Created by wzhao1 on 2017/6/15.
 */
@Controller
public class UserController {

    @RequestMapping(value = "user/{id}",method = RequestMethod.GET)
    @ResponseBody
    public User get(@PathVariable String id){
        System.out.println(id);
        User user = new User();
        user.setPassword("dsfsdf");
        user.setUsername("wzhao1");
        return user;
    }

}
